Class RoutingEntryImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.impl.RoutingEntryImpl
All Implemented Interfaces:
IPCData, RoutingEntry
Direct Known Subclasses:
EIGRPRoutingEntryImpl, NdRoutingEntryImpl, OSPFRoutingEntryImpl, RIPRoutingEntryImpl, StaticRouteImpl

public class RoutingEntryImpl extends IPCDataImpl implements RoutingEntry
  • Field Details

    • typeOfProtocol

      protected Byte typeOfProtocol
    • networkId

      protected IPAddress networkId
    • subnetMask

      protected IPAddress subnetMask
    • portName

      protected String portName
    • nextHop

      protected IPAddress nextHop
    • adminDistance

      protected int adminDistance
    • metric

      protected int metric
  • Constructor Details

    • RoutingEntryImpl

      public RoutingEntryImpl()
  • Method Details

    • getTypeOfProtocol

      public Byte getTypeOfProtocol()
      Specified by:
      getTypeOfProtocol in interface RoutingEntry
      Returns:
      Byte Returns a Byte
    • setTypeOfProtocol

      public void setTypeOfProtocol(Byte typeOfProtocol)
      Specified by:
      setTypeOfProtocol in interface RoutingEntry
      Parameters:
      typeOfProtocol - Takes in a parameter of typeOfProtocol
    • getNetworkId

      public IPAddress getNetworkId()
      Specified by:
      getNetworkId in interface RoutingEntry
      Returns:
      IPAddress Returns a IPAddress
    • setNetworkId

      public void setNetworkId(IPAddress networkId)
      Specified by:
      setNetworkId in interface RoutingEntry
      Parameters:
      networkId - Takes in a parameter of networkId
    • getSubnetMask

      public IPAddress getSubnetMask()
      Specified by:
      getSubnetMask in interface RoutingEntry
      Returns:
      IPAddress Returns a IPAddress
    • setSubnetMask

      public void setSubnetMask(IPAddress subnetMask)
      Specified by:
      setSubnetMask in interface RoutingEntry
      Parameters:
      subnetMask - Takes in a parameter of subnetMask
    • getPortName

      public String getPortName()
      Specified by:
      getPortName in interface RoutingEntry
      Returns:
      String Returns a String
    • setPortName

      public void setPortName(String portName)
      Specified by:
      setPortName in interface RoutingEntry
      Parameters:
      portName - Takes in a parameter of portName
    • getNextHop

      public IPAddress getNextHop()
      Specified by:
      getNextHop in interface RoutingEntry
      Returns:
      IPAddress Returns a IPAddress
    • setNextHop

      public void setNextHop(IPAddress nextHop)
      Specified by:
      setNextHop in interface RoutingEntry
      Parameters:
      nextHop - Takes in a parameter of nextHop
    • getAdminDistance

      public int getAdminDistance()
      Specified by:
      getAdminDistance in interface RoutingEntry
      Returns:
      int Returns a int
    • setAdminDistance

      public void setAdminDistance(int adminDistance)
      Specified by:
      setAdminDistance in interface RoutingEntry
      Parameters:
      adminDistance - Takes in a parameter of adminDistance
    • getMetric

      public int getMetric()
      Specified by:
      getMetric in interface RoutingEntry
      Returns:
      int Returns a int
    • setMetric

      public void setMetric(int metric)
      Specified by:
      setMetric in interface RoutingEntry
      Parameters:
      metric - Takes in a parameter of metric
    • read

      public void read(EncodedBuffer buffer)
      Reads this object from an EncodedBuffer of raw data
      Specified by:
      read in interface IPCData
      Specified by:
      read in class IPCDataImpl
      Parameters:
      buffer - The EncodedBuffer that contains the raw data from which to construct this object